<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/12/8
  Time: 20:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>admin-ssm系统主页</title>
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/jquery-easyui-1.3.3/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/jquery-easyui-1.3.3/themes/icon.css">
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/jquery-easyui-1.3.3/jquery.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/jquery-easyui-1.3.3/jquery.easyui.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/jquery-easyui-1.3.3/locale/easyui-lang-zh_CN.js"></script>
    <script src="${pageContext.request.contextPath}/js/common.js"></script>
    <script type="text/javascript">
        checkCookie();
        var url;

        function addTab(url, text, iconCls) {
            var content = "<iframe frameborder=0 scrolling='auto' style='width:100%;height:100%' src='${pageContext.request.contextPath}/views/" + url + "'></iframe>";
            $("#tabs").tabs("add", {
                title: text,
                iconCls: iconCls,
                closable: true,
                content: content
            });
        }
        function openTab(text, url, iconCls) {
            if ($("#tabs").tabs("exists",text)) {
                $("#tabs").tabs("close", text);
                addTab(url, text, iconCls);
                $("#tabs").tabs("select", text);
            }else {
                addTab(url, text, iconCls);
            }
        }

        function logout() {
            $.messager
                .confirm(
                    "系统提示",
                    "您确定要退出系统吗",
                    function (r) {
                        if (r) {
                            clearCookie();
                        }
                    }
                )
        }
    </script>
</head>

<body class="easyui-layout">
     <div region="north"  style="height: 78px;background-color: #ffff">
         <table width="100%">
             <tr>
                 <td width="50%"></td>
                 <td valign="bottom" style="font-size: 20px;color:#8B8B8B;font-family: '楷体;"
                     align="right" width="50%">
                     <font size="3">&nbsp;&nbsp;<strong>当前管理员</strong>admin</font>【管理员】
                 </td>
             </tr>
         </table>
     </div>
     <div region="center">
         <div class="easyui-tabs" fit="true" border="false" id="tabs">
             <div title="首页" data-options="iconCls:'icon-home'">
                 <div align="center" style="padding-top: 40px;">
                     <a href="https://gitee.com/linyali/admin-ssm" target="_blank" style="font-size: 30px;">
                         admin-ssm源码下载
                     </a>
                 </div>
                 <div align="center" style="padding-top:60px">
                     <font color="grey" size="10">
                         admin ssm
                     </font>
                 </div>
             </div>
         </div>
     </div>
     <div region="west" style="width: 200px;height:500px;" title="导航菜单"
          split="true">
         <div class="easyui-accordion">
             <div title="文章管理"
                  data-options="selected:true,iconCls:'icon-wenzhangs'"
                  style="padding: 10px;height:10px;">
                 <a
                         href="javascript:openTab(' 文章管理-ue','articleManage-ue.jsp','icon-wenzhang')"
                         class="easyui-linkbutton"
                         data-options="plain:true,iconCls:'icon-wenzhang'"
                         style="width: 150px;"> UEditor</a>
                 <a
                         href="javascript:openTab(' 文章管理-ke','articleManage-ke.jsp','icon-wenzhang')"
                         class="easyui-linkbutton"
                         data-options="plain:true,iconCls:'icon-wenzhang'"
                         style="width: 150px;"> kindEditor(推荐)</a>
             </div>
             <div title="图片管理" data-options="iconCls:'icon-shouye'"
                  style="padding:10px">
                 <a
                         href="javascript:openTab(' 图片设置','pictureManage.jsp?type=1&grade=1','icon-picture')"
                         class="easyui-linkbutton"
                         data-options="plain:true,iconCls:'icon-picture'"
                         style="width: 150px;"> 图片设置</a>
             </div>
             <div title="系统管理" data-options="iconCls:'icon-item'"
                  style="padding:10px;border:none;">
                 <a href="javascript:openTab(' 管理员列表','userManage.jsp','icon-lxr')"
                    class="easyui-linkbutton"
                    data-options="plain:true,iconCls:'icon-lxr'" style="width: 150px;">
                     管理员列表</a><a href="javascript:logout()"
                                 class="easyui-linkbutton"
                                 data-options="plain:true,iconCls:'icon-exit'"
                                 style="width: 150px;">
                 安全退出</a>
             </div>
         </div>
     </div>
</body>
</html>
